public class Test {
    public static void main(String[] args) {
        int[] a = {1,2,3,4,5,6,7,8,9};
        String b="";
        System.out.println(a.length);
        for (int i = 0;i<a.length;i++){
            b="";
            for (int j=0;j<=i;j++){
                if (a[i]>=a[j]){
                    b += a[j]+"*"+a[i]+"="+a[i]*a[j]+"\t";

                }
            }
            System.out.println(b);
        }
//        String a="";
//        for (int i=1;i<=9;i++){
//            for (int y=1;y<=i;y++){
//
//                System.out.print(i+"*"+y+"="+i*y+"   ");
//            }
//            System.out.println();
//        }

    }

}
